package com.bootdo.lgs.lgsInterfaces.jzy.dto;

import java.util.Objects;

public class TraceData {
    private Long DocId;
    private String DocNumber;
    private String TraceTime;
    private String Status;
    private String StatusComment;

    public TraceData() {
    }

    public Long getDocId() {
        return this.DocId;
    }

    public void setDocId(Long docId) {
        this.DocId = docId;
    }

    public String getDocNumber() {
        return this.DocNumber;
    }

    public void setDocNumber(String docNumber) {
        this.DocNumber = docNumber;
    }

    public String getTraceTime() {
        return this.TraceTime;
    }

    public void setTraceTime(String traceTime) {
        this.TraceTime = traceTime;
    }

    public String getStatus() {
        return this.Status;
    }

    public void setStatus(String status) {
        this.Status = status;
    }

    public String getStatusComment() {
        return this.StatusComment;
    }

    public void setStatusComment(String statusComment) {
        this.StatusComment = statusComment;
    }

    public String toString() {
        return "TraceData [DocId=" + this.DocId + ", DocNumber=" + this.DocNumber + ", TraceTime=" + this.TraceTime + ", Status=" + this.Status + ", StatusComment=" + this.StatusComment + "]";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TraceData traceData = (TraceData) o;
        return Objects.equals(DocId, traceData.DocId) &&
                Objects.equals(DocNumber, traceData.DocNumber) &&
                Objects.equals(TraceTime, traceData.TraceTime) &&
                Objects.equals(Status, traceData.Status) &&
                Objects.equals(StatusComment, traceData.StatusComment);
    }

    @Override
    public int hashCode() {

        return Objects.hash(DocId, DocNumber, TraceTime, Status, StatusComment);
    }
}
